snippet x.ajax
	import ajax from '../../../filters/ajax-dispatch'
	ajax('${1:POST}', '/${2:path}', {$3}, (resp) => {
		console.log(resp)
		$0
	})
snippet x.im
	import { XHeader, Group, Cell } from 'vux'
snippet x.group
	group
		x.cell+
snippet x.cell
	cell(title="title", value="value")
snippet x.cell+
	cell(title="title", value="value")
	x.cell+
snippet x.ipt
	x-input(
		title="${1:message}",
		placeholder="${2:I'm placeholder}",
		placeholder-align="right",
		text-align="right",
		show-clear
	)
snippet x.h
	x-header(slot="header",
		style="width:100%;position:absolute;left:0;top:0;z-index:100;"
	) ${1:title}
snippet x.h.menu
	x-header(slot="header",
		style="width:100%;position:fixed;left:0;top:0;z-index:100;",
		:right-options="{showMore: true}",
		@on-click-more="showMenus = true"
	) ${1:title}
	actionsheet(:menus="menus", v-model="showMenus", show-cancel)
snippet x.h.menu.data
	menus: {
		menu1: 'Take Photo',
		menu2: 'Choose from photos'
	},
	showMenus: false
snippet x.tabbar
	tabbar(slot="bottom",
		style="width:100%;position:fixed;left:0;bottom:0;z-index:100;"
	)
		x.tabbar.item+
snippet x.tabbar.item+
	tabbar-item(${1:selected,}
		${2:show-dot,}
		${3:badge="2",}
		${4:link="/component/}${5:demo,}"
		:selected="route.path === '/${5:url}'"
	)
		i.fa.fa-user(slot="icon")
		span(slot="label") ${6:Caption}
	x.tabbar.item+
snippet x.tabbar.img+
	tabbar-item(${1:selected,}
		${2:show-dot,}
		${3:badge="2",}
		${4:link="/component/}${5:demo}"
	)
		img(slot="icon", src="../../assets/icons/${5:icon.png}")
		span(slot="label") ${6:Caption}
	x.tabbar.item+
snippet x.blur
	blur(:blur-amount=40, :url="url")
		p.center
			img(:src="url")
		p.center ${1:nickname}
snippet x.search
	search(@result-click="resultClick",
		@on-change="getResult",
		:results="results",
		v-model="value",
		position="absolute",
		auto-scroll-to-top
		top="46px",
		@on-focus="onFocus",
		@on-cancel="onCancel"
	)
snippet x.sticky
	div(style="height:44px;")
		sticky(
			scroll-box="vux_view_box_body",
			:offset="46",
			:check-sticky-support="false"
			)
			tab(:line-width="1")
				tab-item(selected) 发布
				tab-item 收藏
				tab-item 点赞
